home *** CD-ROM | disk | FTP | other *** search
/ Electronic Clipper 1996 November / Electronic Clipper 1996 November.iso / ideasrc / pyramid.dir / 00016_Script_16 < prev    next >
Text File  |  1996-10-11  |  2KB  |  59 lines

  1. on startmovie
  2.   set the visible of sprite 48 to false
  3.   global slider, toolH, toolV, gallery
  4.   set slider = 0
  5.   set the locH of sprite 40 to toolH
  6.   set the locV of sprite 40 to toolV
  7.   set gallery = "slideshow"
  8. end
  9.  
  10. on keyDown 
  11.   if the key = 1 then set the soundLevel to (1)
  12.   if the key = 2 then set the soundLevel to (2)
  13.   if the key = 3 then set the soundLevel to (3)
  14.   if the key = 4 then set the soundLevel to (4)
  15.   if the key = 5 then set the soundLevel to (5)
  16.   if the key = 6 then set the soundLevel to (6)
  17.   if the key = 7 then set the soundLevel to (7)
  18. end keydown
  19.  
  20. on stopmovie
  21.   global toolH, toolV
  22.   set toolH = the locH of sprite 40
  23.   set toolV = the locV of sprite 40
  24. end
  25.  
  26. on pressit button, swap  
  27.   puppetsound "clickdn"
  28.   repeat while the mousedown
  29.     set the castnum of sprite button to swap
  30.     updatestage
  31.   end repeat
  32.   puppetsprite button, false
  33.   puppetsound "clickup"
  34. end
  35.  
  36. on tools  
  37.   global slider
  38.   --go the frame
  39.   repeat with n = 41 to 48
  40.     puppetsprite n, true
  41.   end repeat
  42.   set the locV of sprite 41 to the locV of sprite 40 + 29
  43.   repeat with n = 42 to 46
  44.     set the locV of sprite n to the locV of sprite 40 + 36
  45.   end repeat
  46.   repeat with n = 47 to 48
  47.     set the locV of sprite n to the locV of sprite 40 + 13
  48.   end repeat
  49.   set the locH of sprite 41 to the locH of sprite 40 - 1
  50.   set the locH of sprite 42 to the locH of sprite 40 - 63
  51.   set the locH of sprite 43 to the locH of sprite 40 - 32
  52.   set the locH of sprite 44 to the locH of sprite 40 - 1
  53.   set the locH of sprite 45 to the locH of sprite 40 + 30
  54.   set the locH of sprite 46 to the locH of sprite 40 + 61
  55.   set the locH of sprite 47 to the locH of sprite 40 - 65
  56.   set the loch of sprite 48 to the locH of sprite 40 + 40 + slider
  57.   updatestage
  58. end tools
  59.